//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-02B
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Welcome to Rockville: Motley Crue, Limp Bizkit, Foo Fighters & Slipknot - 4 Day Pass','Daytona International Speedway','Daytona Beach, FL','Thursday','5/9/2024','TBD','5855881','Welcome-to-Rockville--Motley-Crue--Limp-Bizkit--Foo-Fighters---Slipknot---4-Day-Pass-5-9-2024'],['Welcome to Rockville: Motley Crue, Disturbed, Machine Head & Kerry King - Thursday','Daytona International Speedway','Daytona Beach, FL','Thursday','5/9/2024','12:00 PM','5855882','Welcome-to-Rockville--Motley-Crue--Disturbed--Machine-Head---Kerry-King---Thursday-5-9-2024'],['Northwest Terror Fest','Neumos','Seattle, WA','Thursday','5/9/2024','4:00 PM','6131316','Northwest-Terror-Fest-5-9-2024'],['Sum 41 & The Interrupters','Red Hat Amphitheater','Raleigh, NC','Thursday','5/9/2024','6:30 PM','6215162','Sum-41---The-Interrupters-5-9-2024'],['Wisconsin Gospel Music Festival','Crystal Grand Music Theatre','Lake Delton, WI','Thursday','5/9/2024','7:00 PM','6271348','Wisconsin-Gospel-Music-Festival-5-9-2024'],['Baskerville: A Sherlock Holmes Mystery','Festival Stage - Alabama Shakespeare Festival','Montgomery, AL','Thursday','5/9/2024','7:00 PM','5918773','Baskerville--A-Sherlock-Holmes-Mystery-5-9-2024'],['Netflix Is A Joke Festival: Kountry Wayne','Orpheum Theatre - Los Angeles','Los Angeles, CA','Thursday','5/9/2024','7:00 PM','6152081','Netflix-Is-A-Joke-Festival--Kountry-Wayne-5-9-2024'],['Netflix Is A Joke Festival: Dane Cook','Ricardo Montalban Theatre','Los Angeles, CA','Thursday','5/9/2024','7:00 PM','6152084','Netflix-Is-A-Joke-Festival--Dane-Cook-5-9-2024'],['Netflix Is A Joke Festival: Jared Freid','The Downtown Palace Theatre','Los Angeles, CA','Thursday','5/9/2024','7:00 PM','6152079','Netflix-Is-A-Joke-Festival--Jared-Freid-5-9-2024'],['Netflix Is A Joke Festival: JR DeGuzman','Regent Theatre - CA','Los Angeles, CA','Thursday','5/9/2024','7:00 PM','6152083','Netflix-Is-A-Joke-Festival--JR-DeGuzman-5-9-2024']],'"Festival"','https://www.ticketnetwork.com');